package com.ysu.demo.exception;

import com.ysu.demo.enums.ExceptionEnum;
import lombok.Getter;

/**
 * @author ：lhw
 * @date ：Created in 2019/8/9 10:04
 */
@Getter
public class BaseException extends RuntimeException {
    private Integer code;

    public BaseException (ExceptionEnum en){
        super(en.getMsg());

        this.code = en.getCode();
    }

}
